﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WeekWork929.infrastrunceture.Migrations
{
    /// <inheritdoc />
    public partial class _1 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "masenmdooes",
                columns: table => new
                {
                    MasenmdooeId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    MasenmdooeCode = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    MasenmdooeNode = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    MasenmdooeName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Number = table.Column<int>(type: "int", nullable: false),
                    CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    State = table.Column<int>(type: "int", nullable: false),
                    Desc = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_masenmdooes", x => x.MasenmdooeId);
                });

            migrationBuilder.CreateTable(
                name: "workmends",
                columns: table => new
                {
                    WorkmendId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    WorkmendName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Number = table.Column<int>(type: "int", nullable: false),
                    WorkmendStatus = table.Column<int>(type: "int", nullable: false),
                    Desc = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Isdelete = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_workmends", x => x.WorkmendId);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "masenmdooes");

            migrationBuilder.DropTable(
                name: "workmends");
        }
    }
}
